﻿/*==============================================================
 * ArticleCate.cs
 * Copyright (C) 2014 贵州惠众互联 Inc. All rights reserved.
 *==============================================================
 * Author:   罗应红
 * Date:     2014/02/28 11:28:26.
 * Version:  1.0
 * QQ:		 88962800
*==============================================================*/

using System.Collections.Generic;
using QDT.Core.Domain.Enums;

namespace QDT.Core.Domain {
    /// <summary>
    /// 文章分类
    /// </summary>
    public class ArticleCate : Entity {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { set; get; }
        /// <summary>
        /// 简单描述
        /// </summary>
        public string Brief { set; get; }
        /// <summary>
        /// 父Id
        /// </summary>
        public int? ParentId { set; get; }

        public virtual ArticleCate Parent { set; get; }
        /// <summary>
        /// 是否有效
        /// </summary>
        public bool IsEffect { set; get; }
        /// <summary>
        /// 是否已删除
        /// </summary>
        public bool IsDelete { set; get; }
        /// <summary>
        /// 类型Id
        /// <remarks>
        ///     
        /// </remarks>
        /// </summary>
        public ArticleType TypeId { set { InnerArticleTypeId = (int)value; } get { return (ArticleType) InnerArticleTypeId; } }

        public int InnerArticleTypeId {private set; get; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { set; get; }

        public virtual IList<ArticleCate> Child { set; get; }
    }
}